package cn.dubito.springboot.learning.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Random;

/**
 * @author liliang
 * @description:
 * @date 2018/1/8.
 */
@Controller
public class TestController {

    @RequestMapping
    @ResponseBody
    public String demo() {
        String token = System.currentTimeMillis() + new Random().nextInt(999999999) + "";
        return token;
    }
}
